package br.com.massai.model.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@SequenceGenerator(name = "seqItemOrcamento", sequenceName = "seq_item_orcamento", allocationSize = 1)
@NamedQueries({@NamedQuery(name = "ItemOrcamento.findAll", query = "SELECT io FROM ItemOrcamento io")})
@Table(name = "ITEM_ORCAMENTO", schema = "PORTAL")
public class ItemOrcamento implements Serializable {

	private static final long serialVersionUID = -6642327308220992979L;

	@Id
	@GeneratedValue(generator = "seqItemOrcamento", strategy = GenerationType.SEQUENCE)
	@Column(name = "ID_ITEM_ORCAMENTO")
	private Long id;

	@Column(name = "CDOBRA")
	private Integer cdObra;

	@Column(name = "NUVERSAO")
	private Integer nuVersao;

	@Column(name = "CDUNIDCONSTOBRA")
	private Integer cdUnidConstObra;

	@Column(name = "NUSEQUENCIAL")
	private Integer nuSequencial;

	@Column(name = "CDTABELA")
	private Integer cdTabela;

	@Column(name = "CDREFERENCIA", length = 20, columnDefinition = "VARCHAR(20)")
	private String cdReferencia;

	@Column(name = "DEPLANILHA", length = 150, columnDefinition = "VARCHAR(150)")
	private String dePlanilha;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getCdObra() {
		return cdObra;
	}

	public void setCdObra(Integer cdObra) {
		this.cdObra = cdObra;
	}

	public Integer getNuVersao() {
		return nuVersao;
	}

	public void setNuVersao(Integer nuVersao) {
		this.nuVersao = nuVersao;
	}

	public Integer getCdUnidConstObra() {
		return cdUnidConstObra;
	}

	public void setCdUnidConstObra(Integer cdUnidConstObra) {
		this.cdUnidConstObra = cdUnidConstObra;
	}

	public Integer getNuSequencial() {
		return nuSequencial;
	}

	public void setNuSequencial(Integer nuSequencial) {
		this.nuSequencial = nuSequencial;
	}

	public Integer getCdTabela() {
		return cdTabela;
	}

	public void setCdTabela(Integer cdTabela) {
		this.cdTabela = cdTabela;
	}

	public String getCdReferencia() {
		return cdReferencia;
	}

	public void setCdReferencia(String cdReferencia) {
		this.cdReferencia = cdReferencia;
	}

	public String getDePlanilha() {
		return dePlanilha;
	}

	public void setDePlanilha(String dePlanilha) {
		this.dePlanilha = dePlanilha;
	}
}